/**
 * 
 */
package neptune.web.client.view.components.editor;

import neptune.web.client.model.topology.SerializableNode;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.TreeItem;

/**
 * @author Roberto Bifulco [RobertoBifulco.it] [info@robertoBifulco.it]
 * 
 */
public class NodePropsCommand implements Command {

	private SerializableNode node;
	private TreeItem item;
	private final TopologyEditor editor;
	

	public NodePropsCommand(SerializableNode node, TreeItem item, TopologyEditor editor) {
		super();
		this.node = node;
		this.item = item;
		this.editor = editor;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.google.gwt.user.client.Command#execute()
	 */
	public void execute() {
		NodePropsDialog dialog = new NodePropsDialog(node,item,editor);
		dialog.center();
	}

}
